package com.zhang.genericdemo.case1;

import com.zhang.genericdemo.case1.client.Client;
import com.zhang.genericdemo.case1.request.GoodsDetailRequest;
import com.zhang.genericdemo.case1.request.GoodsListRequest;
import com.zhang.genericdemo.case1.response.GoodsDetailResponse;
import com.zhang.genericdemo.case1.response.GoodsListResponse;

/**
 * @Author: ZhangGongMing
 * @CreateTime: 2025/5/17 00:27
 * @Description:
 * @Version: 1.0
 */
public class Main {

    /**
     * 常规实现
     *
     * @param args
     */
    public static void main(String[] args) {
        Client client = new Client();

        GoodsListRequest goodsListRequest = new GoodsListRequest();
        GoodsListResponse goodsListResponse = client.getGoodsList(goodsListRequest);
        System.out.println(goodsListResponse);

        GoodsDetailRequest goodsDetailRequest = new GoodsDetailRequest();
        GoodsDetailResponse goodsDetailResponse = client.getGoodsDetail(goodsDetailRequest);
        System.out.println(goodsDetailResponse);
    }
}
